package com.liveneo.adapter.base.support;

public interface BaseDao<D extends BaseMapper<T>, T extends BaseEntity> {
    /** 通过主键ID查询对应的对象
     * @param id 主键ID
     * @return 返回对象
     */
    T selectByPrimaryKey(String id);

    int deleteByPrimaryKey(String id);

    int delete(T entity);

    int insert(T entity);

    int insertSelective(T record);

    int updateByPrimaryKey(T record);

    int updateByPrimaryKeySelective(T record);
}
